package com.linkai.controller.admin.info;


import com.linkai.controller.admin.BaseController;
import com.linkai.entity.Moneyaccount;
import com.linkai.enums.ResultDTO;
import com.linkai.service.MoneyaccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author yamon
 * @since 2021-01-15
 */
@Controller
@RequestMapping("/admin/info/moneyAccount")
public class MoneyAccountController extends BaseController implements InfoBaseController {
    @Autowired
    private MoneyaccountService moneyaccountService;

    @Override
    @GetMapping("/list")
    @ResponseBody
    public List<Moneyaccount> listAll() {
        return moneyaccountService.list();
    }

    @Override
    public ResultDTO<Boolean> saveSize(String sizeDesc) {
        return null;
    }
}

